# frozen_string_literal: true

Rails.application.config.hosts += [
  '.quran.com',
  '.qurancdn.com',
  '.quran.foundation',
  '.staging.quran.foundation',
  '.apis-staging.quran.foundation',
  '.apis-testing.quran.foundation',
  '.apis-pre-live.quran.foundation',
  '.apis.quran.foundation',
  '.testing.quran.foundation',
  '.pre-live.quran.foundation',
  '.ondigitalocean.app',
  '.quranreflect.com',
  '.quranreflect.org',
  '.test.quranreflect.org',
  '.staging.quranreflect.org',
  '.prelive.quranreflect.org',
]

if Rails.env.development?
  Rails.application.config.hosts +=['.loca.lt', /.ngrok.io/, 'localhost']
end

if Rails.env.test?
  Rails.application.config.hosts += ['www.example.com', 'example.org', 'example.com']
end
